import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
    {
        path: '/',
        name: 'login',
        component: () => import('../views/Login/Login')
    },
    // {
    //     path: '/home',
    //     name: 'home',
    //     component: () => import('../views/Main'),
    //     children: [
    //         {
    //             path: '/user',
    //             name: 'user',
    //             component: () => import('../views/User/User')
    //         },
    //         {
    //             path: '/pageone',
    //             name: 'pageone',
    //             component: () => import('../views/Other/PageOne')
    //         },
    //         {
    //             path: '/pagetwo',
    //             name: 'pagetwo',
    //             component: () => import('../views/Other/PageTwo')
    //         }
    //     ]
    // },
    {
        path: '/404',
        name: '404',
        component: () => import('../views/404/404')
    }
]

const router = new VueRouter({
    routes
})

export default router
